import '@/styles/index.scss' // global css

import Vue from 'vue'
import { sync } from 'vuex-router-sync'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import 'kuan-bear-vue/lib/kuan-bear-vue.css' // kuan-bear-vue.css

import Element from 'element-ui'
import BearVue from 'kuan-bear-vue'

// import MintUI from 'mint-ui'

import App from './App'

import router from './router'
import store from './store'

import mixins from '@/utils/mixins'
import '@/components/icons' // svg组件
import globalComponents from '@/global' // 全局组件
import request from '@/utils/request'
import api from '@/api'

Vue.prototype.$http = request
Vue.prototype.$api = api

sync(store, router)
// Vue.use(MintUI)
Vue.use(Element, {
  size: 'small' // set element-ui default size
})
// 注入bearVue
Vue.use(BearVue)
// 注册全局组件
Vue.use(globalComponents)

Vue.mixin(mixins)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
